﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<%--<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Skutl.is - Innskráning
</asp:Content>--%>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    
    <div id="TextContent">
    
    <h2>Innskráning</h2>
    <p>
       Vinsamlegast skráðu inn notendanafn og lykilorð. Ef þú ert ekki með aðgang getur þú <%= Html.ActionLink("nýskráð", "Register") %> þig.
    </p>
    <%= Html.ValidationSummary("Innskráning tókst ekki. Vinsamlegast leiðréttið villur og reynið aftur.")%>

    <% using (Html.BeginForm()) { %>
        <div>
            <%--<fieldset>--%>
                <%--<legend>Account Information</legend>--%>
                <%-- if (!(ViewData["LoginError"] == ""))
                   {--%>
                      <h2> <%--= Html.Encode(ViewData["LoginError"].ToString()) --%> </h2>
                       
                   <%--
                   ViewData["LoginError"] = "";
                   } --%>
                <p>
                    <label for="username">Notendanafn:</label><br />
                    <%= Html.TextBox("username") %>
                    <%= Html.ValidationMessage("username") %>
                </p>
                <p>
                    <label for="password">Lykilorð:</label><br />
                    <%= Html.Password("password") %>
                    <%= Html.ValidationMessage("password") %>
                </p>
                <p>
                    <%= Html.CheckBox("rememberMe") %> <label class="inline" for="rememberMe">Muna eftir mér?</label>
                </p>
                <p>
                    <input type="submit" value="Innskrá" />
                    <%--<input type="submit" value="Hætta" />--%>
                </p>
            <%--</fieldset>--%>
        </div>
    <% } %>
    </div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent2" runat="server">
    <% Html.RenderPartial("UpcomingToursPartial", ViewData["UpcomingTours"]); %>
</asp:Content>